﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title></title>
</head>
<body>
	<form id="form1" runat="server">
	<p>
		<a href="AddProduct.aspx">添加产品</a></p>
	<asp:GridView ID="gdvProduct" runat="server" Width="95%" AutoGenerateColumns="False"
		CellPadding="4" ForeColor="#333333" GridLines="None">
		<RowStyle BackColor="#EFF3FB" />
		<Columns>
			<asp:HyperLinkField DataNavigateUrlFields="产品ID" DataNavigateUrlFormatString="ShowProduct.aspx?id={0}"
				DataTextField="产品名称" HeaderText="产品名称" />
			<asp:BoundField DataField="类别名称" HeaderText="产品类别" />
			<asp:BoundField DataField="单价" HeaderText="单价" DataFormatString="{0:c}" />
			<asp:BoundField DataField="库存量" HeaderText="库存量" />
			<asp:ButtonField Text="删除" />
			<asp:ButtonField Text="编辑" />
		</Columns>
		<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
		<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
		<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
		<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
		<EditRowStyle BackColor="#2461BF" />
		<AlternatingRowStyle BackColor="White" />
	</asp:GridView>
	<div>
	</div>
	</form>
</body>
</html>
